package com.xishu.bo;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class RowAndColumn implements Serializable {
    private static final long serialVersionUID = -386075774238802975L;

    @ApiModelProperty(value = "行")
    private Integer row;

    @ApiModelProperty(value = "列")
    private Integer column;

    @ApiModelProperty(value = "编号")
    private String code;

    @ApiModelProperty(value = "最大人数，值从FoodTableConfig里面的maxPerson来")
    private Integer maxPerson;

    public Integer getMaxPerson() {
        return maxPerson;
    }

    public void setMaxPerson(Integer maxPerson) {
        this.maxPerson = maxPerson;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public RowAndColumn() {
    }

    public RowAndColumn(Integer row, Integer column) {
        this.row = row;
        this.column = column;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }

    public Integer getColumn() {
        return column;
    }

    public void setColumn(Integer column) {
        this.column = column;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("RowAndColumn{");
        sb.append("row=").append(row);
        sb.append(", column=").append(column);
        sb.append(", code='").append(code).append('\'');
        sb.append(", maxPerson=").append(maxPerson);
        sb.append('}');
        return sb.toString();
    }
}